class CCMailer < ActionMailer::Base
  default from: "gift@costumecode.ru"
  @@to = "contact@costumecode.ru"
  def self.to
    @@to
  end

  def new_order(data)
    @data = data
    mail(:to => CCMailer.to, :subject => "New call order")
  end

  def new_news(data)
    @data = data
    mail(:to => CCMailer.to, :subject => "New subscribtion")
  end


end
